<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html ng-app="app">
    <head>
        <title>TODO supply a title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width">
        <link rel="stylesheet" href="webjars/bootstrap/${bootstrap.version}/css/bootstrap.css">        
<!--         <link rel="stylesheet" href="webjars/bootstrap/3.1.1/css/bootstrap-theme.css">  -->
        <!-- <link href="js/libs/angular-strap/datepicker.css" rel="stylesheet" media="screen"/>  -->
        <!-- <link href="js/libs/ui-utils/style.css" rel="stylesheet"/>
        <link href="js/libs/ui-utils/prettify.css" rel="stylesheet"/> -->
        <link href="signin.css" rel="stylesheet" media="screen"/> 
    </head>
    <body>
        <div ng-controller="LoginCtrl" class="container">
            <form name="formLogin" class="form-signin">
                <h2 class="form-signin-heading">请登录</h2>
                <div ng-show="displayError" class="alert alert-danger">                    
                    <ul>
                        <li ng-repeat="error in errorKeys">错误：{{errors[error]}}</li>
                    </ul>            
                </div>      
                <input ng-model="credential.username" name="username" 
                       placeholder="Email address" type="email" required
                       ui-validate="{blacklist : 'notBlackListed($value)' }">
                <input ng-model="credential.password" name="password" placeholder="Password" type="password"
                       required>
                <label>操作日: <input type="text" name="operateDate" bs-datepicker ng-model="credential.operateDate" required></label>                
                <button class="btn btn-lg btn-primary btn-block" ng-click="login()" type="button"
                        ng-disabled="formLogin.$invalid">登录</button>{{formLogin.$invalid}}
                Is e-mail is black-listed? {{formLogin.password.$error| json}}
            </form>

            <br/>
           <!--  <a href="login.jsp">真的登陆页面</a> &nbsp; <a href="models.html">crud页面</a> -->
            <br/><a href="noframwork/nav.html#!/models/Group">直接进入（部门管理）</a>
            <!-- <br/><a href="index.jsp">user roles</a> -->  
            {{ 1000 | currency }}      
        </div> <!-- /container -->
        <script src="webjars/jquery/${jquery.version}/jquery.js"></script>        
        <script src="webjars/bootstrap/${bootstrap.version}/js/bootstrap.js"></script>
        <script src="webjars/angularjs/${angularjs.version}/angular.js"></script>  
        <script src="webjars/angularjs/${angularjs.version}/angular-animate.js"></script>          
        <script src="webjars/angularjs/${angularjs.version}/angular-resource.js"></script>                  
        <script src="webjars/angularjs/${angularjs.version}/i18n/angular-locale_zh-cn.js"></script>
        <!-- <script src="js/libs/angular-strap/bootstrap-datepicker.js"></script> 
        <script src="js/libs/angular-strap/bootstrap-datepicker.zh-CN.js"></script> 
        <script src="js/libs/angular-strap/angular-strap.js"></script>  -->
        <script src="js/libs/angular-strap/dimensions.js"></script>
        <script src="js/libs/angular-strap/date-parser.js"></script>
        <script src="webjars/angular-strap/${angular-strap.version}/angular-strap.js"></script> 
        <script src="webjars/angular-strap/${angular-strap.version}/angular-strap.tpl.js"></script> 
        <script src="js/login.js"></script>
    </body>
</html>